@import '@/app/styles/variables';

.card {
  display: flex;
  padding: 24px;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  align-self: stretch;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  border: 1px solid var(--simple-gray-morning, #f3f3f3);
  background: var(--simple-morning, #fff);
}

.cardSlide {
  border-radius: 24px;
  border: 1px solid var(--simple-gray-morning, #f3f3f3);
}

.info {
  display: flex;
  gap: 16px;
  align-self: stretch;
}

.user {
  color: #7d7d7d;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px; /* 137.5% */
}

.review {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  flex: 1 0 0;
}

.header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  align-self: stretch;
}

.course {
  font-size: 16px;
  text-align: start;
  line-height: 22px; /* 137.5% */
}

.image {
  position: relative;
  display: flex;
  height: 56px;
  width: 56px;
  align-items: center;
  border-radius: 16px;
  background: #f3f3f3;
  overflow: hidden;
  img {
    object-fit: cover;
  }
}

.description {
  width: 100%;
  position: relative;
  color: var(--simple-night, #000);
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px; /* 150% */
}

.hidden_content {
  display: block;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.hidden_content:after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -5px;
  width: 70px;
  height: 30px;
  background: white;
  filter: blur(5px);
  z-index: 0;
}

.show_all {
  z-index: 1;
  color: var(--Simple-Blue-Day, #337cec);
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px;

  position: absolute;
  bottom: 0;
  right: 5px;
}

.stars {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.star {
  width: 20px;
  height: 20px;
  color: #e1e1e1;
}

.active {
  color: #ffd662;
}

@include media(md) {
  .show_all {
    display: flex;
  }
}

@include media(sm) {
  .stars {
    gap: 2px;
  }

  .card,
  .image {
    border-radius: 16px;
  }

  .card {
    padding: 16px;
    margin: 0 16px;
    width: calc(100% - 32px);
    gap: 12px;
  }

  .cardSlide {
    display: flex;
    flex-direction: column;
    padding: 16px;
    width: calc(100% - 32px);
    margin-left: 15px;
    gap: 16px;
    border-radius: 16px;
  }

  .course,
  .user {
    font-size: 12px;
  }

  .description,
  .show_all {
    font-size: 16px;
  }

  .review {
    gap: 4px;
  }

  .star {
    height: 16px;
    width: 16px;

    svg {
      transform: scale(calc(16 / 20));
    }
  }
}
